home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
palocx
/
form1.frm
next >
Wrap
Text File
|
1999-04-19
|
4KB
|
125 lines
VERSION 5.00
Object = "{BF7DCA08-CB0C-11D2-A538-C6EE5E2FEBB8}#2.0#0"; "NPPal.ocx"
Begin VB.Form Form1
Caption = "Color Palette - Exemple"
ClientHeight = 3015
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3015
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin PalOcx.NPPal NPPal1
Align = 2 'Align Bottom
Height = 765
Left = 0
TabIndex = 0
Top = 2250
Width = 4680
_ExtentX = 8255
_ExtentY = 1349
GridColor = -2147483633
Valeur_RGB = ""
Valeur_HEXA = ""
Border_Style = 2
Max = -1
LargeChange = 1
End
Begin VB.Frame Frame1
Caption = "Informations:"
Height = 2175
Left = 120
TabIndex = 1
Top = 0
Width = 4455
Begin VB.CheckBox Check1
Caption = "Afficher Tooltip"
Height = 255
Left = 120
TabIndex = 8
Top = 1800
Width = 1935
End
Begin VB.TextBox Text1
Height = 285
Index = 2
Left = 1200
TabIndex = 7
Top = 1200
Width = 1935
End
Begin VB.TextBox Text1
Height = 285
Index = 1
Left = 2280
TabIndex = 6
Top = 480
Width = 1935
End
Begin VB.TextBox Text1
Height = 285
Index = 0
Left = 240
TabIndex = 5
Top = 480
Width = 1935
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "Valeur Index:"
Height = 255
Left = 1200
TabIndex = 4
Top = 960
Width = 1935
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "Valeur RGB:"
Height = 255
Left = 2280
TabIndex = 3
Top = 240
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "Valeur Hexa:"
Height = 255
Left = 240
TabIndex = 2
Top = 240
Width = 1935
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
NPPal1.Tooltip = True
Else
NPPal1.Tooltip = False
End If
End Sub
Private Sub Form_Load()
If Right(App.Path, 1) <> "\" Then
NPPal1.Palette = App.Path & "\Soleil.pal"
Else
NPPal1.Palette = App.Path & "Soleil.pal"
End If
End Sub
Private Sub NPPal1_Click()
Text1(0).Text = NPPal1.Valeur_HEXA
Text1(1).Text = NPPal1.Valeur_RGB
Text1(2).Text = NPPal1.Valeur_INDEX
End Sub